package com.tchintech.pay.delegate.certification;

import android.widget.Button;
import android.widget.EditText;
import android.widget.Spinner;
import android.widget.TextView;

import com.tchintech.pay.R;
import com.tchintech.pay.frame.view.AppDelegate;

import butterknife.Bind;

/**
 * Created by Administrator on 2017/7/7 0007.
 */

public class BankCardInfoDelegate extends AppDelegate {
    @Bind(R.id.bankcard_tv_tips)
    TextView bankcardTvTips;
    @Bind(R.id.bankCardInfo_tv_bankCard)
    EditText bankCardInfoTvBankCard;
    @Bind(R.id.bankCardInfo_sp_accountProvince)
    Spinner bankCardInfoSpAccountProvince;
    @Bind(R.id.bankCardInfo_sp_accountCity)
    Spinner bankCardInfoSpAccountCity;
    @Bind(R.id.bankCardInfo_sp_bankType)
    Spinner bankCardInfoSpBankType;
    @Bind(R.id.bankCardInfo_sp_bankName)
    Spinner bankCardInfoSpBankName;
    @Bind(R.id.bankCardInfo_bt_confirm)
    Button bankCardInfoBtConfirm;
    @Bind(R.id.bankCardInfo_bt_cancel)
    Button bankCardInfoBtCancel;
    @Override
    public int getRootLayoutId() {
        return R.layout.activity_bankcard;
    }

    public Spinner getSpinner(int id){
        Spinner spinner=null;
        spinner=get(id);
        return spinner;
    }

    public  String  getTexts(){
        String str=bankCardInfoTvBankCard.getText().toString().trim();
        return  str;
    }

}
